from moviepy.editor import *
import os
import sys
#from moviepy.editor importVideoFileClip, concatenate_videoclips
#路径
a = str(input('路径'))



# 剪辑50-60秒的音乐 00:00:50 - 00:00:60
video = CompositeVideoClip([VideoFileClip("./video/video0.mp4").subclip(0, 93)])

# 写入剪辑完成的音乐
video.write_videofile("./result/0-0.mp4")

'''
clip1 = VideoFileClip("myvideo.mp4")

# 结合剪辑，你甚至能够完全自动化剪辑拼接视频的操作
clip2 = VideoFileClip("myvideo2.mp4").subclip(50, 60)
clip3 = VideoFileClip("myvideo3.mp4")

final_clip = concatenate_videoclips([clip1, clip2, clip3])
final_clip.write_videofile("my_concatenation.mp4")
'''
